package com.crt.nexus.security.jwt;

import org.springframework.security.oauth2.jwt.JwtException;

/**
 * This exception is thrown when an error occurs
 * while attempting to encode a JSON Web Token (JWT).
 */
public class JwtEncodingException extends JwtException {

    /**
     * Constructs a {@code JwtEncodingException} using the provided parameters.
     *
     * @param message the detail message
     */
    public JwtEncodingException(String message) {
        super(message);
    }

    /**
     * Constructs a {@code JwtEncodingException} using the provided parameters.
     *
     * @param message the detail message
     * @param cause   the root cause
     */
    public JwtEncodingException(String message, Throwable cause) {
        super(message, cause);
    }

}
